package com.miukoo.aikao.qmanage.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miukoo.aikao.core.pojos.BaseModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
　* 题库关联问题信息表
　* @Author miukoo<miukoo@126.com>
　* @Date 2020/11/20 10:08
　* @Version 1.0
  */
@Setter
@Getter
@TableName("qu_repository_question")
public class RepositoryQuestion extends BaseModel<RepositoryQuestion> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 试题
     */
    @TableField("qu_id")
    private Long quId;

    /**
     * 归属题库
     */
    @TableField("repo_id")
    private Long repoId;

    /**
     * 题目类型
     */
    @TableField("qu_type")
    private Short quType;

    /**
     * 排序
     */
    private Integer sort;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
